import { createApp } from "vue";
import { createPinia } from "pinia"; // 引入 Pinia
import ElementPlus from "element-plus";
import App from "./App.vue";
import router from "./router";
import "element-plus/dist/index.css";
import "./assets/css/main.css";
import "./assets/icons/iconfont.js";

// 创建 Pinia 实例
const pinia = createPinia();

createApp(App)
  .use(pinia) // 使用 Pinia 替代 Vuex
  .use(router)
  .use(ElementPlus)
  .mount("#app");
